package com.blog.dao;

import com.blog.entity.Blog;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author KazuGin
 * @since 2022-10-19
 */
@Mapper
public interface BlogMapper extends BaseMapper<Blog> {
    //查询博客所有信息
    List<Blog> findAll();
    //根据id查询所有博客信息
    Blog findById(Integer BlogId);
}
